Version

FindInSpans(String,DocumentSpan[],String,FindCriteria) Method

Finds all occurrences of the specified text in the specified array of Infragistics.Documents.RichText.DocumentSpans.
Syntax
'Declaration
 
Public Function FindInSpans( _
   ByVal textToFind As String, _
   ByVal spansToSearch() As Infragistics.Documents.RichText.DocumentSpan, _
   ByRef error As String, _
   Optional ByVal findCriteria As Infragistics.Documents.RichText.FindCriteria _
) As Integer
public int FindInSpans( 
   string textToFind,
   Infragistics.Documents.RichText.DocumentSpan[] spansToSearch,
   out string error,
   Infragistics.Documents.RichText.FindCriteria findCriteria
)

Parameters

textToFind
The text to find.
spansToSearch
An array of Infragistics.Documents.RichText.DocumentSpans within which to search for the text.
error
An error message if an error was encountered.
findCriteria
The Infragistics.Documents.RichText.FindCriteria to use for the operation.

Return Value

The number of occurrences of the specified text found.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also